package oop.day03;

public class TestOverWrite {
    public static void main(String[] args) {
        Person p1=new Person("杜甫",35);
        p1.eat();
        p1.sleep();
        Student s1= new Student("张三三",19,2025001);
        s1.eat();
        s1.sleep();
        s1.study();
        SmallStudent smallStudent= new SmallStudent("赵六六",9,201,"大队长");
        smallStudent.eat();
        smallStudent.sleep();
        smallStudent.study();

    }
}
